<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
<h:head>
<title>Travel Dream - Modifica Pacchetto</title>
<style type="text/css">
			@import url("../travel.css");
			@import url("../user.css");
    	</style>
</h:head>
<h:body>
<ui:include src="headerAdmin.xhtml"/>
<div id='boxUserContainer'>
	Inserisci i dettagli del pacchetto.
	<h:form>
		<h:panelGrid columns="3" id = "regGrid">
			<tr>
				<td><h:outputLabel for="nome">Nome:</h:outputLabel></td>
				<td><h:inputText id="nome" value="#{productInsertBean.product.nome}" /></td>
				<td><h:message for="nome"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="prezzo">Prezzo:</h:outputLabel></td>
				<td><h:inputText id="prezzo" value="#{productInsertBean.product.prezzo}" /></td>
				<td><h:message for="prezzo"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="soggiorno">Soggiorno:</h:outputLabel></td>
				<td><h:selectOneMenu id= "soggiorno" value="#{productInsertBean.product.cod_soggiorno}"> 
						<f:selectItems value = "#{tableBean.soggiorno}" />
					</h:selectOneMenu></td>
				<td><h:message for="soggiorno"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="escursione">Escursione:</h:outputLabel></td>
				<td><h:selectOneMenu id ="escursione" value="#{productInsertBean.product.cod_escursione}"> 
						<f:selectItems value = "#{tableBean.escursione}" />
					</h:selectOneMenu></td>
				<td><h:message for="escursione"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="volo">Volo:</h:outputLabel></td>
				<td><h:selectOneMenu id="volo" value="#{productInsertBean.product.cod_volo}"> 
						<f:selectItems value = "#{tableBean.volo}" />
					</h:selectOneMenu></td>
				<td><h:message for="volo"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="cod">Inserire codice sicurezza:  #{productInsertBean.product.id}</h:outputLabel></td>
				<td><h:inputText id="cod" value="#{productInsertBean.id}" /></td>
				<td><h:message for="cod"></h:message></td>
			</tr>
		</h:panelGrid>

		<h:commandButton value="Modifica prodotto" action="#{productInsertBean.modificaPacchetto}" />
		 

	</h:form>
	</div>
</h:body>
</html>